#!/bin/bash

NCL_SCRIPT_PATH="$HOME/Codes/WRF_scripts/WRF_Post/"
wrfpost_dir="$HOME/wrfpost"
domain="d01"
d02_list=`find ~/wrfout/*/ -name "*wrfout_d02*" -atime -4`
cd $HOME/bin
for ifile in $d02_list
do
    start_date=${ifile:25:10}
    echo $start_date
    ./run_wrfpost.sh $start_date
#    station_allvalue_dir="$wrfpost_dir/txt/station_allvalue/$start_date/$domain/"
#    echo $start_date
#    mkdir -p $station_allvalue_dir
#    ncl input_file='"'$ifile'"' output_prefix='"'$station_allvalue_dir'"' wrfout_to_station_allvalue.ncl
done
